import { get } from "@/tool/get";
let result = null;
export const heightDiff = async (Top, Height, sumHeight, url) => {
    if (
        Math.floor(Top + Height) >= sumHeight - 100 &&
        Math.floor(Top + Height) <= sumHeight - 70
    ) {
        await get(url).then((res) => {
            result = res
        });
        return result
    }
};

export const ObjToArr = (arg) => {
    let arr = Object.keys(arg);
    return (arr.map((i) => arg[i]))
}